const http = uni.$u.http

const api = {
	list: '/api/miniapp/news/news_list.php',
	detail: '/api/miniapp/news/news_detail.php',
}


export const list = (params, config) => http.get(api.list,params, {
	custom: {
		toast: false
	},
	...config
})

export const detail = (params, config) => http.post(api.detail,params, {
	custom: {
		toast: false
	},
	...config
})